#define CALWIN_OPH

#ifndef BWIN_OPH
#include <sdk\bwin>
#endif

/* Property of calimgwn */

STRUCT PRS_CALIMGWN
	calimg%
ENDS

STRUCT PR_CALIMGWN
	root#(SIZEOF(PRS_ROOT))
	win#(SIZEOF(PRS_WIN))
	calimgwn#(SIZEOF(PRS_CALIMGWN))
ENDS

/* Constants for calwin */

#define IN_CALWIN_1_MONTH 0x0001
#define IN_CALWIN_3_MONTH 0x0002
#define IN_CALWIN_12_MONTH 0x0004
#define IN_CALWIN_STD_FLAGS 0x0007
#define IN_CALWIN_USER_SPEC 0x0010
#define PR_CALWIN_TODAY_HOOKED 0x0020

/* Types for calwin */

STRUCT IN_CALWIN
	flags%
	days&
	pos#(SIZEOF(P_POINT))
	calimg%
	self_ptr%
ENDS

/* Property of calwin */

STRUCT PRS_CALWIN
	calimgwn%
	calimg%
	flags%
	self_ptr%
ENDS

STRUCT PR_CALWIN
	root#(SIZEOF(PRS_ROOT))
	win#(SIZEOF(PRS_WIN))
	calwin#(SIZEOF(PRS_CALWIN))
ENDS
